package com.djinfo.work.service;


import com.djinfo.work.common.bean.AjaxJson;
import com.djinfo.work.common.service.BaseService;
import com.djinfo.work.entity.SysNoticeEntity;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 *公告
 */
public interface NoticeService extends BaseService<SysNoticeEntity> {
	public SysNoticeEntity getNoticeById(String id);
	public List<SysNoticeEntity> page(SysNoticeEntity object, Integer pageNum, Integer pageSize);
	public List<SysNoticeEntity> list();
	public Integer getAllRowCount();
	public void updateStatus(String id, HttpSession session);
	public Integer getCountByCondition(SysNoticeEntity object);
	public AjaxJson getInitInfo(HttpSession session);
	public AjaxJson list(SysNoticeEntity sysNoticeEntity, Integer pagenum, Integer pagesize);
	public ModelAndView redirect(SysNoticeEntity sysNoticeEntity);
	public AjaxJson save(SysNoticeEntity sysNoticeEntity, HttpSession session);
	public AjaxJson update(SysNoticeEntity sysNoticeEntity, HttpSession session);
	public AjaxJson deletes(SysNoticeEntity sysNoticeEntity);
	public AjaxJson deleteSome(String ids);
	public AjaxJson updatestatus(String id, HttpSession session);

}
